


$(function(){
	var addBtn=$("#resumeadd");
	
	
	addBtn.bind("click",function(){
		
		var name = $("#name").val();
		var gender = $("#gender").val();
		var email = $("#email").val();
		var IDCard = $("#IDCard").val();
		var phone = $("#phone").val();
		var location = $("#location").val();
		var workExperience = $("#workExperience").val();
		var registraTime = $("#registraTime").val();
		var record = $("#record").val();
	
		if (name==null || name=="") {
		alert(name)
	    alert("名字不能为空！");
	    return false;
	  }else if(gender==null || gender==3){
		  alert("性别不能为空！");
		    return false;
	  }else if(email==null || email==""){
		  alert("邮箱不能为空！");
		    return false;
	}else if(IDCard==null || IDCard==""){
		  alert("身份证号不能为空！");
		    return false;
	}else if(phone==null || phone==""){
		  alert("联系电话不能为空！");
		    return false;
	}else if(location==null || location==""){
		  alert("住址不能为空！");
		    return false;
	}else if(workExperience==null || workExperience==""){
		  alert("工作经验不能为空！");
		    return false;
	}else if(registrantTiem==null || registrantTiem==""){
		  alert("登记日期不能为空！");
		    return false;
	}else if(record==null || record==""){
		  alert("个人履历不能为空！");
		    return false;
	}
	else{
		if(confirm("是否确认提交数据")){
			$("#myForm").submit();
		}
	}
	});
})
  


